package com.qqbot.core.core;

import com.qqbot.core.message.MessageChain;

/**
 * 临时好友
 *
 * @author changwenpeng
 * @date 2022年5月9日
 */
public class TempFriend implements Contact {

    private final long userId;
    private final Bot bot;

    public TempFriend(long userId, Bot bot) {
        this.userId = userId;
        this.bot = bot;
    }

    public long getUserId() {
        return this.userId;
    }

    @Override
    public int sendMessage(MessageChain messageChain) {
        return this.bot.sendPrivateMessage(this.userId, messageChain);
    }

}
